package com.zhiyou10.crowdfunding.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zhiyou10.crowdfunding.service.IProjectStypeService;
import com.zhiyou10.crowdfunding.vo.ProjectStype;

@Controller
@RequestMapping("/projectsType/*")
public class ProjectsTypeController {
	@Autowired
	private IProjectStypeService typeService;
	@RequestMapping("find")
	public @ResponseBody List<ProjectStype> findTypes(){
		List<ProjectStype> list = null;
		try {
			list=typeService.list();
		} catch (Exception e) {
			// TODO: handle exception
		}
		return list;
	}
}
